<template>
<div class="tu">
  <van-swipe :autoplay="3000">
  <van-swipe-item v-for="(image, index) in images" :key="index">
    <img v-lazy="image" />
  </van-swipe-item>
</van-swipe>
</div>
  
</template>

<script>

export default {
    data() {
    return {
      images: [
        require("as/l1.jpg"),
        require("as/l2.jpg"),
      ],
    };
  },
}
</script>
<style>
  .my-swipe .van-swipe-item{
    width: 100%;
    height: 3rem;
    font-size: 0.2rem;
  }
  .tu img{
    display: inline-block;
    width: 100%;
    height: 3rem;
  }
</style>